<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=0.5, minimum-scale=0.5, maximum-scale=0.5, user-scalable=no">
<link rel="stylesheet" href="//at.alicdn.com/t/font_342477_owwvl7ndgo.css?v=1.0.0">
<title>代理首页</title>
<link type="text/css" rel="stylesheet" href="__CSS__/common.css">
<link type="text/css" rel="stylesheet" href="__CSS__/agent.css">
<link type="text/css" rel="stylesheet" href="__CSS__/index.css">

</head>
<body>

<div id="pages">


<?php
if(!empty($data['notice'])){ ?>
<div id='systemnotice'>
	<a class="g-reset g-pd g-flex-ac" style="background-color: rgb(253, 244, 227);">
		<i class="iconfont icon-notice g-orange-middle"></i>
		<marquee class="g-orange-middle g-m-l systemnotice-list" style="width: 100%;"><?php
		$n = [];
		foreach((array)$data['notice'] as $v){
			$n[] = '<span>' . strip_tags($v['消息内容']) . '</span>';
		}
		echo implode('&nbsp;&nbsp;&nbsp;&nbsp;',$n);
		?></marquee>
		<i class="iconfont icon-cancel-1 g-orange-middle l-pl-10" onclick="document.getElementById('systemnotice').style.display='none';"></i>
	</a>
</div>
<?php } ?>
	

<div>

<div class="g-reset g-relative">

<div>
	<img src="http://oss.nawen1413.com/static/images/agent_index_bg.png" class="g-absolute" style="height: 169.6px; z-index: 0; position: absolute; width: 100%;">
	<div class="g-relative" style="z-index: 2; height: 169.6px;">
		<div class="g-flex g-white g-ai-c g-pd">
			<img class="g-br-circle" src="{$data.agent.headimg}" style="border: 1px solid white; width: 110px; height: 110px; margin-top: 25px;">
			<div class="g-col g-pd-lr g-fs-28 g-m-t-20">
				<p class="g-m-b g-lh-44">{$data.agent.nickname}</p>
				<span class="g-btn-tip g-bg-lg-black" style="padding: 0px; line-height: 44px;">
					<span class="g-br-circle g-b g-bg-yellow-1 g-tc" style="height: 44px; width: 44px; border: 1px solid rgb(255, 255, 255); line-height: 38px; position: relative; left: 2px; top: 2px;">
						<i class="iconfont icon-huangguan g-white g-lh-44"></i>
					</span><span class="g-pd-lr g-yellow g-relative" style="top: -4px;">{$data.agent.agentlevelname}</span>
				</span>
			</div>
			<span>&nbsp;&nbsp;</span>
		</div>
	</div>
</div>



<!--资金-->
<style>
.g-index-fund{ padding:20px  2%; overflow:hidden; }
.g-index-fund a{ width:23.5%; position: relative; margin-right:2%; float:left; box-sizing:border-box; -webkit-box-sizing:border-box; -moz-box-sizing:border-box; -ms-box-sizing:border-box; }
.g-index-fund a:last-child{ margin-right:0; }
</style>
<div>

<div class="g-reset g-bg-white g-m-b g-white" style='overflow-x:scroll'>
<div class="g-col g-pd g-scroll g-nowrap g-index-fund" style='width:133%;'>

<a class="g-m-r g-pd-t-10 g-pd-lr g-inline" href="{:url('Balance/hk')}" style="background: url('__IMG__/home_5.png') 0% 0% / 100% no-repeat;"><div class="g-fd-c"><p class="g-white g-fs-24">货款余额</p><p class="g-white g-fs-28">￥{$data.data.productcash|number_format=2}</p></div>
</a>

<a class="g-m-r g-pd-t-10 g-pd-lr g-inline" href="{:url('Balance/xj')}" style="background: url('__IMG__/home_4.png') 0% 0% / 100% no-repeat;"><div class="g-fd-c"><p class="g-white g-fs-24">现金余额</p><p class="g-white g-fs-28">￥{$data.data.cash|number_format=2}</p></div></a>

<a class="g-m-r g-pd-t-10 g-pd-lr g-inline" href="{:url('Reward/index')}" style="position: relative; background: url('__IMG__/home_3.png') 0% 0% / 100% no-repeat;"><div class="g-fd-c"><p class="g-white g-fs-24">我的奖励</p><p class="g-white g-fs-28">￥{$data.data.reward|number_format=2}</p></div></a>

<a class="g-m-r g-pd-t-10 g-pd-lr g-inline" href="{:url('Reward/index')}" style="position: relative; background: url('__IMG__/home_5.png') 0% 0% / 100% no-repeat;"><div class="g-fd-c"><p class="g-white g-fs-24">下级奖励</p><p class="g-white g-fs-28">￥{$data.data.nextreward|number_format=2}</p></div></a>

</div>
</div>
</div>
<!--资金 End-->



<!--订单&提货-->
<div class="g-relative" id="boot-goods" style="z-index: 11; pointer-events: auto;">
	<div class="g-tc g-bg-white g-ai-c g-black-dark g-m-b g-pd-b g-pd-t-10">
		<a class="g-flex g-fd-c g-col g-relative g-inline" href="{:url('Goods/list')}" style="width:25%;"><i class="iconfont icon-dingdan11 g-lh-80 g-fs-50"></i><div>进行提货</div></a><a class="g-flex g-fd-c g-col g-relative g-inline" href="{:url('Order/index')}" style="width: 25%;"><i class="iconfont icon-shangpinguanli g-lh-80 g-fs-50"></i><div>我的订单</div>{if condition="$data.ordernum gt 0"}
		<i class="g-absolute" style="display: block; height: 30px; width: 30px; top: 8px; left: 20px; background: rgb(246, 111, 98); border-radius: 15px; font-style: normal; font-variant: normal; font-weight: normal; font-stretch: normal; font-size: 20px; line-height: 30px; font-family: &quot;&quot;; color: white; margin: 0px 50%;">{$data.ordernum}</i>
		{/if}</a><!--<a class="g-flex g-fd-c g-col g-relative g-inline" href="#" style="width: 25%;"><i class="iconfont icon-daibuhuodingdan g-lh-80 g-fs-50"></i><div>提货明细</div></a>--><a class="g-flex g-fd-c g-col g-relative g-inline" href="{:url('Agent/suborders')}" style="width: 25%;"><i class="iconfont icon-dingdan11 g-lh-80 g-fs-50"></i><div>下级订单</div>{if condition="$data.nextordernum gt 0"}
		<i class="g-absolute" style="display: block; height: 30px; width: 30px; top: 8px; left: 20px; background: rgb(246, 111, 98); border-radius: 15px; font-style: normal; font-variant: normal; font-weight: normal; font-stretch: normal; font-size: 20px; line-height: 30px; font-family: &quot;&quot;; color: white; margin: 0px 50%;">{$data.nextordernum}</i>
		{/if}</a>
		
	</div>
</div>


<!--订单&提货 End-->

</div>

<style>
.g-agent-action{  }
.g-agent-action a{ width:33.3333%; }
</style>
<div class="g-relative" id="boot-agent" style="z-index: 1; pointer-events: auto;">
<div class="g-reset g-row g-tc g-bg-white g-m-b g-agent-action">
	<a class="g-flex g-fd-c g-pd-t g-pd-b" href="{:url('Agent/invite')}" style="float: left; text-align: -webkit-center;">
		<div></div>
		<div class="g-bg-lg-blue-1 g-br-circle g-img-92">
			<i class="iconfont g-fs-50 icon-yaoqingqia g-white"></i>
		</div>
		<div class="g-pd-t">代理邀请</div>
	</a>
	<a class="g-flex g-fd-c g-pd-t g-pd-b" href="{:url('Agent/invite_list')}" style="float: left; text-align: -webkit-center;">
		<div></div>
		<div class="g-bg-lg-purple g-br-circle g-img-92">
			<i class="iconfont g-fs-50 icon-shenhe g-white"></i>
		</div>
		<div class="g-pd-t">代理审核</div>
	</a>
	<a class="g-flex g-fd-c g-pd-t g-pd-b" href="{:url('Agent/upgrade')}" style="float: left; text-align: -webkit-center;">
		<div></div>
		{if condition="$data.customer gt 0"}
		<!--热点-->
		<div class="g-tabs g-relative _sum">
			<div class="_empty"></div>
			<div class="g-absolute" style="left: 62%; top: 35px; width: 22px; height: 22px;"></div>
		</div>
		<!--热点 End-->
		{/if}
		<div class="g-bg-lg-blue-1 g-br-circle g-img-92">
			<i class="iconfont g-fs-50 icon-shengji g-white"></i>
		</div>
		<div class="g-pd-t">代理升级</div>
		
	</a>
	
	
	
	<a class="g-flex g-fd-c g-pd-t g-pd-b" href="{:url('Index/certificate')}" style="float: left; text-align: -webkit-center;">
		<div></div>
		<div class="g-bg-lg-purple g-br-circle g-img-92">
			<i class="iconfont g-fs-50 icon-zhengshu g-white"></i>
		</div>
		<div class="g-pd-t">授权证书</div>
		
	</a>
	<!--
	<a class="g-flex g-fd-c g-pd-t g-pd-b" href="##" style="float: left; width: 25%; text-align: -webkit-center;">
		<div></div>
		<div class="g-bg-lg-orange g-br-circle g-img-92">
			<i class="iconfont g-fs-50 icon-liwu g-white"></i>
		</div>
		<div class="g-pd-t">奖励</div>
	</a>

	<a class="g-flex g-fd-c g-pd-t g-pd-b" href="##" style="float: left; width: 25%; text-align: -webkit-center;">
		<div></div>
		<div class="g-bg-lg-yellow g-br-circle g-img-92">
			<i class="iconfont g-fs-50 icon-yeji2 g-white"></i>
		</div>
		<div class="g-pd-t">我的业绩</div>
	</a>
	-->
	
	<a class="g-flex g-fd-c g-pd-t g-pd-b" href="{:url('Relation/jhxj')}" style="float: left; text-align: -webkit-center;">
		<div></div>
		<div class="g-bg-lg-yellow g-br-circle g-img-92">
			<i class="iconfont g-fs-50 icon-icon_xiajijinhuodan g-white"></i>
		</div>
		<div class="g-pd-t">进货关系网</div>
	</a>

	<a class="g-flex g-fd-c g-pd-t g-pd-b" href="{:url('Relation/wyqd')}" style="float: left; text-align: -webkit-center;">
		<div></div>
		<div class="g-bg-lg-orange g-br-circle g-img-92">
			<i class="iconfont g-fs-50 icon-yaoqing g-white"></i>
		</div>
		<div class="g-pd-t">邀请关系网</div>
	</a>

	

</div>
<img src="http://oss.nawen1413.com/uploads/202008/5f34aa3a74774.jpg" style="width: 100%;">

</div>



<script src='__JS__/jquery.min.js'></script>
<script>
$(function(){
	setFacSize();
	$('.systemnotice-list span').click(function(){
		location.href = "{:url('Message/notice')}";
	});
});
function setFacSize(){
	var w = $('.g-index-fund a').eq(0).innerWidth();
	var h = w / (203/104);
	$('.g-index-fund a').css('height',h);
}
</script>


{include file="public/agent_footer" /}

</div>


</div>


<div id="ios-hack-view"></div>
</body>
</html>